Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 1.33 KB

File metadata and controls

60 lines (51 loc) · 1.33 KB

import { HttpStatusCode } from 'solid-start/server'; import { Description, Property, Title } from '/components'; import { isQwik } from '/contexts';

<Title>toTrimmed</Title> Creates a transformation functions that removes the leading and trailing white space and line terminator characters from a string.

toTrimmed

Creates a transformation functions that removes the leading and trailing white space and line terminator characters from a string.

const transform = toTrimmed(options);

Parameters

  • options
    • on <Property {...properties.on} />

Return

  • transform <Property {...properties[isQwik() ? 'qwik' : 'solidPreactOrReact'].transform} />

export const properties = { on: { type: [ { type: 'string', value: 'input' }, { type: 'string', value: 'change' }, { type: 'string', value: 'blur' }, ], }, solidPreactOrReact: { transform: { type: { type: 'custom', name: 'TransformField', href: '../TransformField', }, }, }, qwik: { transform: { type: { type: 'custom', name: 'QRL', generics: [ { type: 'custom', name: 'TransformField', href: '../TransformField', }, ], }, }, }, };